import React,{Component} from 'react'
import './index.less'

/**
 * 头部导航组件
 */
export default class Header extends React.Component {
  render() {
    // 获取用户名
    const {username} = this.props.user
    return (
      <div className='header'>
        <span className='header-welcome'>
          欢迎你，{username}
        </span>
        <hr style={{color: '#3c3c3c'}}/>
        <span className='header-weather'>
          上海
        </span>
      </div>
    )
  }
}